<template>
  <div class="profile">
    <nav-bar class="nav-bar">
      <span slot="center">我的档案</span>
    </nav-bar>
    <usr-info/>
    <account-info/>
    <normal-list :dataset="orderList"/>
    <normal-list :dataset="serviceList"/>
  </div>
</template>

<script>
  import NavBar from "components/common/navbar/NavBar";
  import UsrInfo from "./childCompos/UsrInfo";
  import AccountInfo from "./childCompos/AccountInfo";
  import NormalList from "./childCompos/NormalList";

  export default {
    name: "Profile",
    components:{
      NavBar,
      UsrInfo,
      AccountInfo,
      NormalList
    },
    data() {
      return {
        orderList: [
          {icon: 'message.svg', info: '我的消息'},
          {icon: 'pointer.svg', info: '积分商城'},
          {icon: 'vip.svg', info: '会员卡'},
        ],
        serviceList: [
          {icon: 'cart.svg', info: '我的购物车'},
          {icon: 'shopping.svg', info: '下载购物APP'},
        ]
      }
    }
  }
</script>

<style scoped>
  .nav-bar{
    background-color: var(--color-tint);
    color: #fff;
  }
  .profile{
    background-color: #f2f2f2;
  }
</style>